home *** CD-ROM | disk | FTP | other *** search
-
-
-
- sssseeeettttwwwwaaaaiiiittttjjjjoooobbbbppppiiiidddd((((2222)))) sssseeeettttwwwwaaaaiiiittttjjjjoooobbbbppppiiiidddd((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- setwaitjobpid - set a process to retrieve job information with waitjob
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////rrrreeeessssoooouuuurrrrcccceeee....hhhh>>>>
-
- iiiinnnntttt sssseeeettttwwwwaaaaiiiittttjjjjoooobbbbppppiiiidddd((((jjjjiiiidddd____tttt rrrrjjjjiiiidddd,,,, ppppiiiidddd____tttt wwwwppppiiiidddd))))
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _ssss_eeee_tttt_wwww_aaaa_iiii_tttt_jjjj_oooo_bbbb_pppp_iiii_dddd function sets a job to wait for a specified process to
- call _wwww_aaaa_iiii_tttt_jjjj_oooo_bbbb. If a job is set to wait for a process, it remains a zombie
- after job termination until either the process _w_p_i_d calls _wwww_aaaa_iiii_tttt_jjjj_oooo_bbbb or the
- process _w_p_i_d terminates. The _ssss_eeee_tttt_wwww_aaaa_iiii_tttt_jjjj_oooo_bbbb_pppp_iiii_dddd function takes two arguements:
- _r_j_i_d, the job id of the job to be set to wait and _w_p_i_d, the process id of
- the process that is expected to call _wwww_aaaa_iiii_tttt_jjjj_oooo_bbbb. The _w_p_i_d parameter cannot
- be the process calling the _ssss_eeee_tttt_wwww_aaaa_iiii_tttt_jjjj_oooo_bbbb_pppp_iiii_dddd function. If an _r_j_i_d of 0 is
- specified, the job of the calling process is used.
-
- The _ssss_eeee_tttt_wwww_aaaa_iiii_tttt_jjjj_oooo_bbbb_pppp_iiii_dddd function checks the specified pid's process for the
- CAP_SETUID capability. If called for another job, the _ssss_eeee_tttt_wwww_aaaa_iiii_tttt_jjjj_oooo_bbbb_pppp_iiii_dddd
- function checks for CAP_MAC_WRITE and CAP_PROC_MGT capability. See the
- capability(4) and capabilities(4) man pages for more information on the
- capability mechanism that provides fine grained control over the
- privileges of a process.
-
- The _ssss_eeee_tttt_wwww_aaaa_iiii_tttt_jjjj_oooo_bbbb_pppp_iiii_dddd function returns 0 if successful.
-
- EEEERRRRRRRROOOORRRRSSSS
- Under the following conditions, the function _ssss_eeee_tttt_wwww_aaaa_iiii_tttt_jjjj_oooo_bbbb_pppp_iiii_dddd sets _e_r_r_n_o to:
-
- [ENOPKG] The job limits software is not installed.
-
- [EINVAL] _w_p_i_d is the pid of the calling process or _r_j_i_d is the jid
- of the job which _w_p_i_d belongs.
-
- [ESRCH] The process _w_p_i_d does not exist.
-
- [EPERM] If calling process or entered pid do not have capability.
-
- [ENOJOB] The job _r_j_i_d does not exist.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- systune(1M), getjlimit(2), setjlimit(2), getjusage(2), makenewjob(2),
- killjob(2), waitjob(2).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, _s_e_t_w_a_i_t_j_o_b_p_i_d returns 0. If an error occurs,
- a value of -1 is returned and eeeerrrrrrrrnnnnoooo is set to indicate the error.
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-